package a.f.l.a;

import a.c.d;
import a.c.z;
import a.f.tb;

public class m
{
  private static final byte a = -1;
  public static final byte b = 0;
  public static final byte c = 1;
  public static final byte d = 2;
  public static final byte e = 3;
  public static final byte f = 4;
  private final d h;
  private final mb i;
  private jb j;
  private jb k;
  private final tb l;
  private final tb m;
  private int n;
  private int o;
  private final tb[] p;
  private byte q = -1;
  private qc s;
  private z t;
  private pc u;
  private pc v;
  private db w;
  z x;
  public static boolean y;
  
  public m(d paramd, mb parammb, jb paramjb1, jb paramjb2, tb paramtb1, tb paramtb2, int paramInt)
  {
    this.h = paramd;
    this.i = parammb;
    this.j = paramjb1;
    this.k = paramjb2;
    this.l = paramtb1;
    this.m = paramtb2;
    this.o = paramInt;
    this.p = c();
  }
  
  qc a()
  {
    if (!sb.e) {
      if (this.s == null) {
        this.s = new qc(this);
      }
    }
    return this.s;
  }
  
  public int b()
  {
    return this.p.length - 1;
  }
  
  void a(n paramn)
  {
    boolean bool = sb.e;
    if (paramn.c() != this.h) {
      throw new RuntimeException("edgeInfo does not match edge!");
    }
    double d1;
    if (!bool)
    {
      if (this.j != null)
      {
        d1 = paramn.a(this.o).e();
        this.j = new jb(d1, d1, this.j.f(), this.j.a());
      }
      if (bool) {}
    }
    else if (this.k != null)
    {
      d1 = paramn.a(this.n).e();
      this.k = new jb(d1, d1, this.k.f(), this.k.a());
    }
    this.s = new qc(this);
  }
  
  private tb[] c()
  {
    boolean bool = sb.e;
    if (!bool) {
      if (this.l == null) {
        return new tb[] { this.m };
      }
    }
    if (!bool) {
      if (this.m == null) {
        return new tb[] { this.l };
      }
    }
    label128:
    tb localtb;
    if (!bool) {
      if (this.l == this.m)
      {
        if (!bool)
        {
          if (this.k.f(this.j)) {
            return new tb[] { this.l };
          }
          if (bool) {
            break label128;
          }
        }
        localtb = a(this.j, this.l, this.k) ? this.l.b() : this.l.a();
        return new tb[] { this.l, localtb, this.m };
      }
    }
    if ((bool) || (this.l.c() == this.m))
    {
      if (!bool) {}
      localtb = a(this.j, this.l, this.k) ? this.l.b() : this.l.a();
      return new tb[] { this.l, localtb, this.m };
    }
    return new tb[] { this.l, this.m };
  }
  
  public String toString()
  {
    boolean bool = sb.e;
    int i2 = sb.d;
    StringBuffer localStringBuffer = new StringBuffer();
    do
    {
      for (int i1 = 0; i2 == 0; i1++)
      {
        if (i1 >= this.p.length) {
          break;
        }
        if (i2 != 0) {
          break label59;
        }
        localStringBuffer.append(this.p[i1].toString());
      }
    } while (bool);
    label59:
    return localStringBuffer.toString();
  }
  
  tb[] d()
  {
    return this.p;
  }
  
  public byte e()
  {
    if (!sb.e) {
      if (this.q == -1) {
        q();
      }
    }
    return this.q;
  }
  
  public int f()
  {
    return this.o;
  }
  
  public void a(int paramInt)
  {
    this.o = paramInt;
  }
  
  public int g()
  {
    return this.n;
  }
  
  public void b(int paramInt)
  {
    this.n = paramInt;
  }
  
  public pc h()
  {
    return this.u;
  }
  
  public void a(pc parampc)
  {
    this.u = parampc;
    this.j = new jb(parampc.a(), this.j.f(), this.j.a());
    this.w = null;
  }
  
  public pc i()
  {
    return this.v;
  }
  
  public void b(pc parampc)
  {
    this.v = parampc;
    this.k = new jb(parampc.a(), this.k.f(), this.k.a());
    this.w = null;
  }
  
  db j()
  {
    boolean bool = sb.e;
    if (!bool) {
      if (this.w == null)
      {
        if (!bool) {
          if (this.u == null)
          {
            if (bool) {
              break label57;
            }
            if (this.v == null) {
              break label56;
            }
          }
        }
        this.w = new db(this.u, this.v);
      }
    }
    label56:
    label57:
    return this.w;
  }
  
  public d k()
  {
    return this.h;
  }
  
  public mb l()
  {
    return this.i;
  }
  
  public jb m()
  {
    return this.j;
  }
  
  public jb n()
  {
    return this.k;
  }
  
  public tb o()
  {
    return this.l;
  }
  
  public tb p()
  {
    return this.m;
  }
  
  public z q()
  {
    if (!sb.e) {
      if (this.t == null) {
        this.t = r();
      }
    }
    return this.t;
  }
  
  private z r()
  {
    boolean bool = sb.e;
    int i4 = sb.d;
    z localz = new z();
    int i1 = this.o;
    if (!bool)
    {
      if (this.j != null)
      {
        if (bool) {
          break label63;
        }
        if (this.k != null) {}
      }
      else
      {
        b(i1);
      }
    }
    else
    {
      this.q = 4;
      return localz;
    }
    label63:
    eb localeb1;
    eb localeb2;
    Object localObject;
    if (!bool)
    {
      if (this.j.a() == this.k.a())
      {
        localeb1 = eb.b(this.j.e(), this.k.e());
        localeb2 = this.l.e() ? new eb(this.i.j(), this.i.l()) : new eb(this.i.i(), this.i.k());
        localObject = eb.c(this.j.e(), this.k.e());
        int i2 = this.l != this.m ? 1 : 0;
        if (!bool) {}
        int i3 = !this.k.e().c(this.j.e()) ? 1 : 0;
        e locale2;
        if ((bool) || ((i2 != 0) || (i3 != 0)))
        {
          if (!bool) {}
          this.q = (i2 != 0 ? 3 : 1);
          locale2 = new e(this.h, i1, this.l, this.j.e(), new eb(this.j.f(), this.j.f()), localeb2, this.i);
          localz.add(locale2);
          i1++;
          if (!bool) {}
          tb localtb = a(this.j, this.l, this.k) ? this.l.b() : this.l.a();
          e locale3 = new e(this.h, i1, localtb, localeb2, (eb)localObject, localeb1, this.i);
          localz.add(locale3);
          i1++;
          e locale4 = new e(this.h, i1, this.m, this.k.e(), new eb(this.k.f(), this.k.f()), localeb2, this.i);
          localz.add(locale4);
          if (bool) {
            return localz;
          }
          if (i4 == 0) {}
        }
        else
        {
          this.q = 0;
          locale2 = new e(this.h, i1, this.l, this.k.e(), localeb2, localeb2, this.i);
          localz.add(locale2);
          if (bool) {
            return localz;
          }
          if (i4 == 0) {}
        }
      }
      else
      {
        this.q = 2;
      }
    }
    else
    {
      localeb1 = eb.d(this.k.e(), this.j.f());
      localeb2 = new eb(this.j.f(), this.k.e().c(this.j.f()));
      localObject = new e(this.h, i1, this.l, this.j.e(), localeb2, localeb1, this.i);
      localz.add(localObject);
      i1++;
      localeb1 = eb.d(this.j.e(), this.k.f());
      localeb2 = new eb(this.k.f(), this.j.e().c(this.k.f()));
      e locale1 = new e(this.h, i1, this.m, this.k.e(), localeb2, localeb1, this.i);
      localz.add(locale1);
    }
    b(i1);
    return localz;
  }
  
  private static boolean a(jb paramjb1, tb paramtb, jb paramjb2)
  {
    boolean bool = sb.e;
    double d1 = paramjb1.e().c();
    double d2 = paramjb2.e().c();
    if ((bool) || ((tb.c == paramtb) || (tb.d == paramtb)))
    {
      if (!bool) {}
      return d1 <= d2;
    }
    if (!bool) {}
    return d1 > d2;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.l.a.m
 * JD-Core Version:    0.7.0.1
 */